const columns = (expand, onRemove, namespace) => {
    return [
        {
          type: 'expand',
          width: 60,
          render: (h, {row}) => {
            return h(expand, {
              props: {
                row
              }
            })
          }
        },
        {
            type: 'selection',
            title: '#',
            width: 60
        },
        {
            title: '操作用户',
            key: 'name',
            width: 100
        },
        {
            title: '异常标识',
            key: 'uuid',
            width: 280
        },
        {
            title: '异常URL',
            key: 'url',
            width: 160,
        },
        {
            title: '异常实例',
            key: 'instance',
            // width: 480
        },
        {
            title: '请求方法',
            key: 'method',
            width: 100
        },
        // {
        //     title: '客户端信息',
        //     // width:180,
        //     key: 'agent'
        // },
        {
          title: '请求IP',
          key: 'ip',
          width: 100
        },
        {
            title: '创建日期',
            key: 'ctime',
            width: 180
        }, {
            title: '操作',
            key: 'operation',
            width: 140,
            render: (h, { row, column, index }) => {
                return h('div', [
                    h('Button', {
                        on: {
                            click: () => onRemove(row.id)
                        },
                        props: {
                            type: 'text',
                            size: 'small'
                        },
                    }, '删除')
                ]);
            }
        }
    ]
}
export default columns;
